<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <script src="./node_modules/react/umd/react.development.js"></script>
    <script src="./node_modules/react-dom/umd/react-dom.development.js"></script>
    <div id="Alo"></div>
    <script>
      let title = React.createElement('h3', null, 'hello world')
      // 18版本用法
      // 创建根节点
      let root = ReactDOM.createRoot(document.getElementById('Alo'))
      root.render(title)
      // 虚拟DOM -> 普通对象
      console.log('VDOM', title)
      console.log('TDOM', document.getElementById('root'))
      let TDOM = document.getElementById('root')
      // debugger
      // 判断数据的类型 typeof instanof
      let arr = []
      console.log('title-typeof', typeof title, typeof arr)
      console.log('title-instanceof', title instanceof Object)
      console.log('arr-instanceof', arr instanceof Array)
    </script>
  </head>
  <body></body>
</html>
